package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户短信表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-06-12
 */
@TableName("wz_user_sms")
public class WzUserSms extends Model<WzUserSms> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 内容
     */
    private String content;
    @TableField("from_name")
    private String fromName;
    /**
     * 类型：1-注册验证码；2-三方登录验证码；3-忘记密码验证码;4-通知；
     */
    private Integer type;
    /**
     * 短信种类：1-验证码；2-通知；
     */
    @TableField("sms_type")
    private Integer smsType;
    /**
     * 开始时间
     */
    @TableField("start_time")
    private Date startTime;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 状态：0-已使用；1-未使用
     */
    private Integer status;
    /**
     * 电话号码
     */
    private String tel;
    /**
     * code
     */
    @TableField("vaild_code")
    private String vaildCode;
    /**
     * 有效时间（分钟）
     */
    @TableField("vaild_times")
    private Integer vaildTimes;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSmsType() {
        return smsType;
    }

    public void setSmsType(Integer smsType) {
        this.smsType = smsType;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getVaildCode() {
        return vaildCode;
    }

    public void setVaildCode(String vaildCode) {
        this.vaildCode = vaildCode;
    }

    public Integer getVaildTimes() {
        return vaildTimes;
    }

    public void setVaildTimes(Integer vaildTimes) {
        this.vaildTimes = vaildTimes;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WzUserSms{" +
        "id=" + id +
        ", content=" + content +
        ", fromName=" + fromName +
        ", type=" + type +
        ", smsType=" + smsType +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", status=" + status +
        ", tel=" + tel +
        ", vaildCode=" + vaildCode +
        ", vaildTimes=" + vaildTimes +
        "}";
    }
}
